from flask import Flask

def create_app():
    app = Flask(__name__)

    app.config.from_pyfile('config/settings.py')
    app.config.from_pyfile('config/secure.py')

    import router
    router.init_app(app)

    import models
    models.init_app(app)

    return app